package com.hongye.proprietary.xxljob;

import com.hongye.proprietary.service.impl.HongyeOrderServiceImpl;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author lins
 * @date 2021/10/31 15:16
 */
@Component
@Slf4j
public class CompensateForOrderJob {
    @Autowired
    HongyeOrderServiceImpl orderService;
    @XxlJob("compensateForOrder")
    public void compensateForOrder(){
        log.info("修改已成功支付的流水的订单状态");
        orderService.compensateForOrder();
    }
}
